/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package textfilewriter.entity.dimension;

/**
 *
 * @author GiangLT
 */
public class TimeDimension {

    private static final long serialVersionUID = 1L;
    private Long hourId;
    private Long hour24;
    private Long hour12;
    private String amPm;
    private Long timeSegment;

    public TimeDimension() {
    }

    public TimeDimension(Long hourId) {
        this.hourId = hourId;
    }

    public Long getHourId() {
        return hourId;
    }

    public void setHourId(Long hourId) {
        this.hourId = hourId;
    }

    public Long getHour24() {
        return hour24;
    }

    public void setHour24(Long hour24) {
        this.hour24 = hour24;
    }

    public Long getHour12() {
        return hour12;
    }

    public void setHour12(Long hour12) {
        this.hour12 = hour12;
    }

    public String getAmPm() {
        return amPm;
    }

    public void setAmPm(String amPm) {
        this.amPm = amPm;
    }

    public Long getTimeSegment() {
        return timeSegment;
    }

    public void setTimeSegment(Long timeSegment) {
        this.timeSegment = timeSegment;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (hourId != null ? hourId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TimeDimension)) {
            return false;
        }
        TimeDimension other = (TimeDimension) object;
        if ((this.hourId == null && other.hourId != null) || (this.hourId != null && !this.hourId.equals(other.hourId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "textfilewriter.entity.DimTime[ hourId=" + hourId + " ]";
    }
}
